package com.shelpe.services.sinbad.entity.jpa.vo;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import lombok.Data;

@Data
@JsonInclude(Include.NON_NULL)
public class PlatformVo {

	private String nick;
	@JsonProperty("nonsearch_channels")
	private Channels nonsearchChannels;// 非搜索投放频道代码数组，频道代码必须是直通车非搜索类频道列表中的值。？
	@JsonProperty("search_channels")
	private Channels searchChannels;// 搜索投放频道代码数组，频道代码必须是直通车搜索类频道列表中的值。
	@JsonProperty("modified_time")
	@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
	private Date modifiedTime;
	@JsonProperty("create_time")
	@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	@JsonProperty("mobile_discount")
	private int mobileDiscount;// 无线折扣百分比。必须大于等于1，小于等于200的整数
	@JsonProperty("campaign_id")
	private long campaignID;
	@JsonProperty("outside_discount")
	private int outsideDiscount;// 溢价的百分比，必须是大于等于 1小于等于200的整数

	@Data
	public static class Channels {
		private List<Integer> number;
	}

}
